3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A highlight state object is used to specify whether affected geometric objects are to receive highlighting effects during rendering. The relevant highlighting effects are specified by an associated highlight style object. If a geometric object's highlight state is set to True (and an associated highlight style object has been defined), then any renderer that supports highlighting will apply the attributes specified by the highlight style object to that geometric object when rendering; these attributes will override incompatible attributes assigned to that geometric object by other means. A highlight state object is idle if no associated highlight style object exists. See "Highlight Styles" , for complete details on highlight style objects.
Container (
Container (
HighlightStyle ( ) # highlight style object
Container (
AttributeSet ( )
DiffuseColor ( 1 0 0 ) # highlighting: red color
)
)
Container (
Polygon ( ... )
Container (
AttributeSet ( )
DiffuseColor ( 0 0 1 ) # polygon's normal color: blue
HighlightState ( True ) # polygon is to be highlighted
) # and will appear red when
) # rendered
Previous | QD3D Book | Overview | Chapter Contents | Next |